#include<stdio.h>
struct linknode {
	int num;
	struct linknode* next;
};
void test(){
	struct linknode node1 = {10,NULL};
struct linknode node2 = { 20,NULL };
struct linknode node3 = { 30,NULL };
struct linknode node4 = { 40,NULL };
struct linknode node5 = { 50,NULL };

node1.next = &node2;
node2.next = &node3;
node3.next = &node4;
node4.next = &node5;

struct linknode* pcurrent = &node1;
while (pcurrent != NULL) {
	printf("%d ", pcurrent->num);
	pcurrent = pcurrent->next;
}
}
int main() {
	test();
	return 0;
}